#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include "Broad.h"
#include "BroadMgr.h"
#define N 10

int main()
{
	char *pPathArr[3] = 
	{
		"Map1.ini",
		"Map2.ini",
		"Map3.ini"
	};
	int Map[3][N][N] = { 0 };
	int count = -1;
	while ((++count) != 3)
		InitConfig(Map[count], pPathArr[count]);
	count = -1;
	printf("\033[?25l");
	InitMgr();
	InitBroadMgr();
	while ((++count) != 3)
		InsertBroadMgr(Map[count]);
	while (1)
	{
		PTBroad pBroad = GetBroad();
		PrintBroad(((PTBroadMgr)GetBroadMgr())->pArr[pBroad->broadId - 1]);
		UpdateBroad(pBroad);
	}
	return 0;
}